if statement

The if statement is very similar to the C if statement.
\begin{rail}
If: 'if' '(' expression ')' '{' (statement +) ( () \vert 'else' (statement +)) '}';
\end{rail}
Note that the statements executed inside both the sections of the body can include other if statements, as shown below.

Subsections